package com.cn.springcloudwechat.mapper.mapper.find.DelicateAskAnswer;

import com.cn.springcloudwechat.model.find.DelicateAskAnswer.YmDelicateMenuToArticle;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;

@Repository
public interface YmDelicateMenuToArticleMapper {
    int insert(YmDelicateMenuToArticle record);

    int insertSelective(YmDelicateMenuToArticle record);

    int deleteByArticleId(@Param("ymDelicateArticleId") ArrayList<Long> ymDelicateArticleId,@Param("state")Integer state);

    ArrayList<Long> selectArticleId(@Param("ymDelicateMenuId") Long ymDelicateMenuId,@Param("state") Integer state);

    ArrayList<Long> selectMenuId(@Param("ymDelicateArticleId") ArrayList<Long> ymDelicateArticleId,@Param("state") Integer state);

    int updateMenuId(@Param("ymDelicateMenuId") Long ymDelicateMenuId,@Param("ymDelicateArticleId") Long ymDelicateArticleId);

}